// 云函数入口文件
const cloud = require('wx-server-sdk')

cloud.init()

const db = cloud.database()
// 云函数入口函数
exports.main = async (event, context) => {
  return await db.collection('jihua').doc(event.dataId).update({
    data: {
      trueday: event.trueday,
      whenday: event.whenday,
      dailywhenday2: event.dailywhenday2,
      realityday: event.realityday,
      dakatab2: event.dakatab2,
      hezuo: event.hezuo,
      use: event.use,
      userimg: event.userimg,
      userimg1: event.userimg1,
      username: event.username,
      userjudge: event.userjudge
    }
  })

}